package entity;


import org.hibernate.validator.constraints.NotEmpty;

public class Administrator {

  private int aid;
  private String photo;
  @NotEmpty(message = "用户名不能为空")
  private String aname;
  @NotEmpty(message = "密码不能为空")
  private String apwd;
  private int positionId;
  private String telephone;
  private String aremark;
  private Position position;

  public Position getPosition() {
    return position;
  }

  public void setPosition(Position position) {
    this.position = position;
  }

  public int getAid() {
    return aid;
  }

  public void setAid(int aid) {
    this.aid = aid;
  }


  public String getPhoto() {
    return photo;
  }

  public void setPhoto(String photo) {
    this.photo = photo;
  }


  public String getAname() {
    return aname;
  }

  public void setAname(String aname) {
    this.aname = aname;
  }


  public String getApwd() {
    return apwd;
  }

  public void setApwd(String apwd) {
    this.apwd = apwd;
  }


  public int getPositionId() {
    return positionId;
  }

  public void setPositionId(int positionId) {
    this.positionId = positionId;
  }


  public String getTelephone() {
    return telephone;
  }

  public void setTelephone(String telephone) {
    this.telephone = telephone;
  }


  public String getAremark() {
    return aremark;
  }

  public void setAremark(String aremark) {
    this.aremark = aremark;
  }

}
